#pragma once
#include "..\LinkedList\List.h"
#include "Person.h"

/** \brief Contains people of the Person-class.
*
*/
template<class T>
class PersonList : public List<T>
{
public:

	PersonList()
	{
	}

	PersonList(const PersonList &list)
	{
		Node<T> *n = list.head;
		while (n != nullptr)
		{
			this->add_at_head(n->info);
			n = n->next;
		}
	}

	~PersonList()
	{
	}
};

